package com.gsnd.gsnd22estore.mapper;

import com.gsnd.gsnd22estore.domain.EsOrder;
import com.gsnd.gsnd22estore.dto.OrderItemDTO;
import com.gsnd.gsnd22estore.dto.QueryOrderDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity com.gsnd.gsnd22estore.domain.EsOrder
 */
@Mapper
public interface EsOrderMapper {
    //查询订单
    List<QueryOrderDTO> selectByCondition(@Param("userId") Integer userId,
                                                  @Param("status") Integer status,
                                                  @Param("ordId") String orderId) ;
    List<OrderItemDTO> selectItemByOrderId( String orderId);
}




